import request from '@/utils/request'
export function getRole(data){
    return request({
        url:'/role/info',
        method:'GET',
       params:data
    })
}
export function deleteRole(data){
    return request({
        url:'/role/deleteRole',
        method:'POST',
        params:data
    })
}
//获取菜单列表
export function listAllMenu(){
    return request({
        url:'/menu/listAllMenu',
        method:'GET',

    })
}
export function addRole(data){
    return request({
        url:'/role/addRole',
        method:'POST',
        data

    })
}
export function getmenuList(data){
    return request({
        url:"/menu/menuListByRoleId",
        method:"GET",
        params:data
    })
}
export function getUserRoleList(data){
    return request({
        url:"/permissions/getUserRoleList",
        method:"GET",
        params:data
    })
}
